package com.datasource.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.datasource.constants.DBConstants;
import com.datasource.entity.OrderDO;
import org.springframework.stereotype.Repository;

/**
 * @author ytj
 * @date 2021/12/14
 */
@Repository
public interface OrderMapper {

    @DS(DBConstants.DATASOURCE_SLAVE)
    OrderDO selectById(Integer id);

    @DS(DBConstants.DATASOURCE_MASTER)
    int insert(OrderDO orderDO);
}
